package com.kgc.activityprovider.controller;

import com.kgc.activiti.remote.WorkFlowTypeRemote;
import com.kgc.activiti.util.ResponseMsg;
import com.kgc.activityprovider.service.WorkFlowTypeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WorkFlowTypeController implements WorkFlowTypeRemote {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private WorkFlowTypeService workFlowTypeService;

    @Override
    public ResponseMsg selectAllWorkFlowType() {
        logger.info("WorkFlowController selectAllWorkFlowType is start...");
        ResponseMsg msg = workFlowTypeService.selectAllWorkFlowType();
        logger.debug("WorkFlowController selectWorkFlowByType msg:"+msg);
        return msg;
    }
}
